/**
 * @date 3:41:19 PM
 * SMSAPIService.java
 * Administrator
 * TODO
 */
package com.qs.education.service;

import javax.transaction.Transactional;

import com.qs.education.bean.api.PageBean;
import com.qs.education.bean.api.ResponseBean;
import com.qs.education.bean.beans.EducationSMSResponse;
import com.qs.education.bean.entity.EducationSMS;

/**
 * @class SMSAPIService	
 * @author Warren
 * @description
 * @date Nov 5, 2018 
 */
public interface ISMSAPIService {
	
	/**
	 * @author Warren
	 * @return EducationSMSResponse
	 * @description 根据手机号给用户发送短信
	 * @date Nov 5, 2018
	 */
	@Transactional
	public EducationSMSResponse getSMS(EducationSMS obj); 
	
	/**
	 * @author Warren
	 * @param mobile 手机号
	 * @param code 验证码
	 * @return ResponseBean
	 * @description 用户发送的验证码与后台存储的进行校验
	 * @date Nov 5, 2018
	 */
	
	public ResponseBean checkSMS(String mobile,String code);

	/**
	 * @Description 查询所有SMS
	 * @author Jason
	 * @date Nov 16, 2018
	 * @param sms
	 * @param page
	 * @param size
	 * @return
	 */
	public PageBean getSMSList(EducationSMS educationSMS, Integer page, Integer size);

	/**
	 * @Description 根据Id删除SMS
	 * @author Jason
	 * @date Nov 19, 2018
	 * @param id
	 * @return
	 */
	public Boolean deleteSMSById(Integer id);
}
